// This is an open source non-commercial project. Dear PVS-Studio, please check it.
// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com

// ReSharper disable CheckNamespace
// ReSharper disable CommentTypo
// ReSharper disable UnusedMember.Global

/* CheckboxTag.cs --
 * Ars Magna project, http://arsmagna.ru
 */

namespace AM.HtmlTags;

/// <summary>
///
/// </summary>
public class CheckboxTag
    : HtmlTag
{
    #region Construction

    /// <summary>
    ///
    /// </summary>
    /// <param name="isChecked"></param>
    public CheckboxTag
        (
            bool isChecked
        )
        : base ("input")
    {
        Attr ("type", "checkbox");
        if (isChecked)
        {
            Attr ("checked", "true");
        }
    }

    #endregion
}
